<?php
//session_start();
//$key = $_COOKIE["userkey"];
//$is_login = false;
//if(isset($_SESSION[$key]["username"])){
//    $is_login = true;
//}

include_once 'common/common.php';
?>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
    <?php
    echo '欢迎来到淘宝';
    ?><br />
        <?php
            if(!getLoginStatus()){
        ?>
            <a href="reg.php">注册</a>
            <a href="login.php">登录</a>
        <?php }else{ ?>
            <a href="user/logout.php">退出</a>
        <?php }?>
	</body>

</html>

